#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
void Delete(int x[], char y[][80]);
int main()
{
	int i = 0;
	int arr1[10] = { 1,2,3,4,5,6,7,8,9,10 };//工号
	char arr2[][80] = {"xia1","xia2", "xia3", "xia4", "xia5", "xia6", "xia7", "xia8", "xia9", "xia10"};//姓名
	for (i = 0; i < 10; i++)
	{
		printf("%3d", arr1[i]);
		printf("%7s\n", &arr2[i]);
	}
	Delete(arr1, arr2);
	return 0;
}
void Delete(int x[], char y[][80])
{
	int a = 0;
	int i = 0;
	int j = 0;
	int z = 0;
	printf("Please input the number which need to delete:\n");
	scanf("%d", &a);
	for (i = 0; i < 10; i++)
	{
		if (x[i] == a)
		{
			for (j = i; j < 10; j++)
			{
				x[j] = x[j + 1];
				for(z = 0;z<80;z++)
				{
					y[j][z] = y[j + 1][z];
				}
			}
		}
	}
	printf("删除后的信息为：\n");
	for (i = 0; i < 9; i++)
	{
		printf("%3d", x[i]);
		printf("%7s\n", &y[i]);
	}
}